import type { ComponentCustomElementInterface, VNode } from "vue";

export interface AlertProps {
  alert?: string; //提示内容
  duration?: number;//时长
  showClose?: boolean;
  type?: 'success' | 'warning' | 'Alert' | 'error';
  offset?: number;
  id?: string;
  closeType?: string;
  showOperation?: boolean;
  onDestroy: () => void
}

export type createAlertProps = Omit<AlertProps, 'onDestroy' | 'id'>
// 组件实例
export interface AlertContext {
  id: string;
  vnode: VNode
  props: AlertProps,
  vm: ComponentCustomElementInterface
}
